home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / manage / snmp / cmu-snmp1.0 / snmplib / snmp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-19  |  2.0 KB  |  56 lines

  1. /*
  2.  * Definitions for the Simple Network Management Protocol (RFC 1067).
  3.  *
  4.  *
  5.  */
  6. /***********************************************************
  7.     Copyright 1988, 1989 by Carnegie Mellon University
  8.  
  9.                       All Rights Reserved
  10.  
  11. Permission to use, copy, modify, and distribute this software and its 
  12. documentation for any purpose and without fee is hereby granted, 
  13. provided that the above copyright notice appear in all copies and that
  14. both that copyright notice and this permission notice appear in 
  15. supporting documentation, and that the name of CMU not be
  16. used in advertising or publicity pertaining to distribution of the
  17. software without specific, written prior permission.  
  18.  
  19. CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  20. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  21. CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  22. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  23. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  24. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  25. SOFTWARE.
  26. ******************************************************************/
  27.  
  28. #define SNMP_PORT        161
  29. #define SNMP_TRAP_PORT        162
  30.  
  31. #define SNMP_MAX_LEN        484
  32.  
  33. #define SNMP_VERSION_1        0
  34.  
  35. #define GET_REQ_MSG        (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x0)
  36. #define GETNEXT_REQ_MSG        (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x1)
  37. #define GET_RSP_MSG        (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x2)
  38. #define SET_REQ_MSG        (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x3)
  39. #define TRP_REQ_MSG        (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x4)
  40.  
  41. #define SNMP_ERR_NOERROR    (0x0)
  42. #define SNMP_ERR_TOOBIG        (0x1)
  43. #define SNMP_ERR_NOSUCHNAME (0x2)
  44. #define SNMP_ERR_BADVALUE   (0x3)
  45. #define SNMP_ERR_READONLY   (0x4)
  46. #define SNMP_ERR_GENERR        (0x5)
  47.  
  48. #define SNMP_TRAP_COLDSTART        (0x0)
  49. #define SNMP_TRAP_WARMSTART        (0x1)
  50. #define SNMP_TRAP_LINKDOWN        (0x2)
  51. #define SNMP_TRAP_LINKUP        (0x3)
  52. #define SNMP_TRAP_AUTHFAIL        (0x4)
  53. #define SNMP_TRAP_EGPNEIGHBORLOSS    (0x5)
  54. #define SNMP_TRAP_ENTERPRISESPECIFIC    (0x6)
  55.  
  56.